package com.sean.designpatterns.structure.chainofResponsibility;

public class LoggerChain {
    public static AbstractLogger getChain() {
        AbstractLogger errorLogger = new ErrorLogger();
        AbstractLogger fileLogger = new FileLogger();
        AbstractLogger consoleLogger = new ConsoleLogger();
        consoleLogger.setNextLogger(fileLogger);
        fileLogger.setNextLogger(errorLogger);
        return  consoleLogger;
    }
}
